package com.video;

import android.app.Activity;
import android.app.Dialog;
import android.app.Fragment;
import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.FrameLayout;

import com.app.BaseActivity;
import com.example.com.skills_utf8.R;
import com.example.com.skills_utf8._58_1Fragment;
import com.example.com.skills_utf8._58_2Fragment;
import com.example.com.skills_utf8._58_3Fragment;
import com.example.com.skills_utf8._58_4Fragment;

public class VideoActivity extends BaseActivity implements View.OnClickListener{

    VideoActivity activity = this;

    @Override
    public Integer InitLayout() {
        return R.layout.activity_video;
    }

    @Override
    public void InitView() {

        Button btn_video = (Button)findViewById(R.id.btn_video);
        Button btn_video1 = (Button)findViewById(R.id.btn_video1);


        btn_video.setOnClickListener(this);
        btn_video1.setOnClickListener(this);



    }

    @Override
    public void InitListener() {

    }

    @Override
    public void InitProcess() {

    }



    @Override
    public void onClick(View v) {
        // TODO Auto-generated method stub

        Fragment fragment = null;

        switch(v.getId()){
            case R.id.btn_video:
                fragment = new VideoActivityFragment();
                break;
            case R.id.btn_video1:
                fragment = new VideoActivity1Fragment();
                break;

        }


        android.app.FragmentTransaction transaction = getFragmentManager().beginTransaction();
        transaction.replace(R.id.layout_content, fragment);
        transaction.commit();


    }


}
